{% include 'base.html'%}
<div class = "page">
{% load url from future %}
<a href="{% url 'interview.views.index' %}"><div class="header"><h1>Home Page</h1></div></a>
<div class="header1">
	<p>Group 1, <b><i>A.S.P.H.A.L.T,   </br>A Software Process Help And L.E.O.P.A.R.D. Tool,	 </br>Logically Evolving Operational Planning Around Resource Distribution.</i></b></p>

</div>
<div class="login">
	{% if user.is_authenticated %}	
		<h1> You are logged in as {{user}}</h1>
	<form method = post action="{% url 'interview.views.LogUserOut' %}">
	{% csrf_token %}
		<input name="userAction" type = "submit" value="Logout"/>

	</form>
	{% if user.is_staff %}
		<a href="{% url 'admin:index' %}"><h1>Change, Add, Delete: Facts, Rules, and Questions</h1></a>
	{% endif %}
	{% else %}
	<form method = post action="{% url 'interview.views.LogUserIn' %}">
	{% csrf_token %}
		<table>
		<tr>
			<td align="left">Username:</td><td align="right"><input type="text" name="username" /></td>
		</tr>
		<tr>
			<td align="left">Password:<td align="right"><input type="password" name= "password" /></td>
		</tr>
		<tr>
			<td align="right"><input name="userAction" type = "submit" value="Login"/></td>
			<td align="right"><a href="{% url 'interview.views.register' %}">Create a new Account</a></td>		
		</tr>
		
		</table>
	</form>

	{% endif %}
</div>
<!-- Index html -->
<div class="start_page">
<H2>The System</H2>

{% if greetings %}
	<P>
	{{ greetings }}
	</P>
	<A HREF="{% url 'interview.views.genPage' %}">Start the Questions.</A>
{% else %}
	<P>Error!!!</P>
{% endif %}
</div>

</BODY>
</HTML>
